home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12322 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  937 b 

  1. Path: vixen.cso.uiuc.edu!usenet
  2. From: doc@uiuc.edu (Jim Marco)
  3. Newsgroups: comp.os.msdos.programmer,comp.lang.c
  4. Subject: problems using int 25h
  5. Date: 30 Mar 1996 17:54:07 GMT
  6. Organization: A temporary reversal of entropy
  7. Message-ID: <4jjsfv$g41@vixen.cso.uiuc.edu>
  8. Reply-To: doc@uiuc.edu
  9. NNTP-Posting-Host: ux5.cso.uiuc.edu
  10.  
  11. I'm trying to write a program (in Turbo C 2.0) that scans the hard disk looking
  12. for certain file signatures.  I want this program to scan sector by sector, so
  13. I tried using int 25h via the Turbo C absread() command.  The problem is, the
  14. program works as intended on drive C: which is a 20 meg PC-DOS 5.0 partition,
  15. but not on drive D: which is a 300 meg partition (same OS).  The call keeps
  16. returning a "sector not found" error even for low sector values.  Can anyone
  17. shed any light on this?  Thanks in advance.
  18.  
  19. -- 
  20. Jim Marco -- doc@uiuc.edu
  21.  
  22. It's not an optical illusion, it just looks like one. -- Phil White
  23.